package DataStructure.ArrayLearning.ArrayList;

/**
 *  测试类
 *  使用数组实现线性表
 */
public class TestDemo {
    public static void main(String[] args) {
        MyArrayList<String> list = new MyArrayList<>(1);
        list.add("A");
        list.add("B");
        list.add("A");
        list.add("C");
        list.add("D");
        list.add("E");
        System.out.println(list);
        System.out.println(list.get(2));
        //list.set(5,"EE");
        //System.out.println(list);
    }
}
